<?php
class podcms_shop_order extends EDO_object_basic 
{
	static $_tables = array('podcms_shop_orders');


	
	static $_relations = array(
        array(
    	'name' => 'items',
		'type' => 'relation_has_many',
		'class_name' => 'podcms_shop_orderitem',
		'foreign_key' => 'podcms_shop_order_edoid',
		'render_as' => 'dropdown',
		'display' => '%edoid',
		'order' => 'edoid ASC',
	   ),
	);

	
	
	
	public function getFormattedDate()
	{
		return date("d.m.y H:i:s", $this->date);
	}
	
	public function getItems()
	{
	
	}
	
	
	
}
?>